<{if not $order}>
    <div class="box-none">
        <img src="/resource/www/imgs/box_none_icon.png" class="img">
        <p class="text">抱歉，你还没有订单！</p>
    </div>
<{else}>
 <div class="orders-view">
     <h2 class="title">查看订单</h2>

     <p class="info">游客信息</p>

     <div class="user-xin fix">
         <img src="<{$order.tourist.userIcon}>" class="left">
         <div class="center">
             <p class="one">
                 <span class="span">姓名：<{$order.tourist.userName}></span>
                 <span class="span">性别：<{if $order.tourist.userGender == 'm'}>男<{elseif $order.tourist.userGender == 'f'}>女<{else}>未知<{/if}></span>
             </p>
             <p class="two">
                 <span class="span">年龄：<{$order.tourist.userAge}></span>
                 <span class="span">出行人数：<{$order.persons}>人</span>
             </p>
         </div>
     </div>

     <p class="info">订单说明</p>

     <div class="ddinfo">
         <p class="one">支付费用：<strong class="strong"><{$order.moneyTotal/100|@number_format:2}>€</strong> </p>
         <p class="one" title="预定服务：<{$order.serviceName}>">预定服务：<{$order.serviceName}></p>
     </div>

     <p class="info">行程时间</p>

     <div class="xcsj fix">
         <span class="start">行程开始时间：<{$order.startDay}> </span>
         <span class="end">行程结束时间：<{$order.stopDay}></span>
     </div>

     <p class="info">当前状态</p>

     <div class="status-wrap">
         <p class="status"><{$order.statusName}></p>
     </div>
     
     <p class="info">小贴士</p>

     <div class="xiaotieshi">
                      行程中哇吖会为游客托管资金，行程结束游客执行确认付款操作后，哇吖将会向玩伴执行打款操作。如果行程结束后七日之内游客没有确认付款或是提出申诉，系统将自动执行确认付款操作
     </div>
     <div class="axinx">
         <p class="dd">你的订单信息</p>

         <ul class="logs">
             <{foreach from=$logs item="log"}>
             <li class="li fix">
                 <div class="left"><{"Y.m.d"|@date:$log.created}></div>
                 <div class="center"><{"H:i:s"|@date:$log.created}></div>
                 <div class="right" title="<{$log.log}>"><{$log.log}></div>
             </li>
             <{/foreach}>
         </ul>
         
         <{if $isOrdersofGuider}>
         <div class="bo-m">
            <{if $order.status == '3' || $order.status == '32'}>
            <span class="jies" onclick="finish_order('<{$order.orderNo}>')">确认付款</span>
            <{/if}>
            <{if $order.status == 3}>
            <span class="jujie" onclick="send_shensu('<{$order.orderNo}>')"class="a">发起申诉</span>
            <{/if}>
         </div>
         <{/if}>
     </div>
 </div>
    <{/if}>

<script>
    $('.yuding_nav').addClass("active");
    <{if $isOrdersofGuider}>
    function finish_order(orderNo){
       layer.confirm('请在行程结束后点击《确认付款》，哇吖将会向玩伴执行打款操作，您的行程是否已经完成？', {
                    title: null,
                    btn: ['确认', '取消'],
             },  function () {
                    window.location.assign('/order/finish/<{$order.orderNo}>');
                 }
             ,  function (index) {
                    layer.close(index);
                });
    }
    function send_shensu(orderNo){
       layer.confirm('如果本次行程中玩伴存在重大过失，或者对本次行程有重大异议，您可以向哇吖提出申诉请求，哇吖将根据退款政策执行全部退款或是部分退款操作，另外针对行程中出现的法律纠纷，哇吖也将追究相关责任人的法律责任，您是否确定发起申诉？', {
                    title: null,
                    btn: ['确认', '取消'],
            },  function () {
                   window.location.assign('/order/shensu/<{$order.orderNo}>');
                }
            ,  function (index) {
                   layer.close(index);
       });
    }
    <{/if}>
</script>
